Syntax required to render Grid Box Layout in Umbra...
# help-with-umbraco
s
I have tried this : @Html.GetGridHtml(Model, "gridBox") & this too @await Html.GetBlockGridHtmlAsync(Model.grid) which is right in umbraco 12? If possible please provide snippet with correct namespaces & nuGet packages (if any needed!). @Sebastiaan
m
Think you are confusing the
Legacy Grid
and the new
Block Grid
.. which are you using? (it's not clear from `Grid Box Layout `as that's not something I think is in the core) https://docs.umbraco.com/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/grid-layout vs https://docs.umbraco.com/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/block-editor/block-grid-editor as the two methods you mention are for the two different propeditor rendering. There's full documentation for both at the links above. 😉
ps as per the docs.. if you have the choice use gridblocl, as the legacy grid is obsolete and to be removed in coming versions. 😉
s
Thanks Mike for the answer, yes I am talking about Block Grid, I confused on block grid layout stylesheet , I will again have a look on it. Whether to reuse default block grid layout stylesheet or should upload new custom one.
10 Views